﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="resources.ascx.cs" Inherits="templates_client_usercontrols_resources" %>
<table style="margin-top:5px; width:504px;" cellpadding="0" cellspacing="0">
    <tr style="background-image:url(../templates/client/images/bar_title_middle.png); background-repeat:no-repeat; height:35px;">
        <td valign="top" align="left">
            <img src="../templates/client/images/arrow_title.png" alt="arrow_title" width="20px" style="margin-left:5px; margin-right:5px; margin-top:7px;" />
            <span class="title_bar_content" style="margin-top:10px;">Tài nguyên</span>
        </td>
    </tr>
    <tr>
        <td>
            <table width="500px">
    	    <tr>
    	        <td>
    	            <asp:TextBox ID="txtTuKhoa" runat="server" onFocus="if(this.value=='Tìm kiếm tài nguyên')this.value='';" onBlur="if(this.value=='')this.value='Tìm kiếm tài nguyên';" value="Tìm kiếm tài nguyên" ></asp:TextBox> 
    	        </td>
    	        <td>                  
                    <asp:DropDownList ID="ddlChuDe" runat="server"  Width="200px" Height="22px">
                    </asp:DropDownList>
                 </td> 
                 <td>
                    <asp:Button ID="btnTim" runat="server" class="button"  Text="Tìm" onclick="btnTim_Click" />
                 </td> 
             </tr>
             <tr>
                <td colspan="3">             
                <asp:Repeater ID="rptDanhSachTaiNguyen" runat="server">                                              
                        <ItemTemplate> 
                            <table width="100%">
                                <tr>
                                    <td >
                                        <img src="<%#"../uploads/resourcesupload/" + Eval("HinhAnh")%>" width="100px" height="120px" />
                                    </td>
                                    <td >                                        
                                            <asp:Label ID="mota" runat="server" Text='<%# Eval("Mota") %>'></asp:Label><br />                                        
                                            <b>Dung lượng :</b><asp:Label ID="dungluong" runat="server" Text='<%# Eval("DungLuong") %>'></asp:Label><br />                                        
                                            <b>Cập nhật lúc:</b><asp:Label ID="Label2" runat="server" Text='<%# Eval("NgayDang") %>'></asp:Label><br />                                        
                                            <b>Số lượt tải :</b><asp:Label ID="Label3" runat="server" Text='<%# Eval("LuotTai") %>'></asp:Label><br />
                                            <b>Người đăng :</b> <asp:Label ID="Label4" runat="server" Text='<%# Eval("NguoiDang") %>'></asp:Label><br />
                                            <asp:HyperLink ID="HyperLink1" runat="server"  NavigateUrl='<%# "~/uploads/resourcesupload/" + Eval("TenFile")%>'>Tải về</asp:HyperLink>
                                    </td>                               
                                 </tr>
                                 <td colspan="2">
                                <span style="color: Red" > --------------------------------------------------------------------------------</span></td>
                             </table>
                        </ItemTemplate>
                        <FooterTemplate></tbody></FooterTemplate>
                    </asp:Repeater>
                 </td>
              </tr>                                          
       </table>
        </td>
    </tr>
    <tr style="background-image:url(../templates/client/images/footer-page-content2.png); background-repeat:repeat-x; height:40px">
         
             <td>
                    <ul class="paging" id="PhanTrang" runat="server">
                        <li>
                            <asp:LinkButton ID="lbtnFirst" runat="server" CausesValidation="false" 
                                        OnClick="lbtnFirst_Click" CssClass="prev">Đầu</asp:LinkButton>
                        </li>
                        <li >
                            <asp:LinkButton ID="lbtnPrevious" runat="server" CausesValidation="false" 
                                        OnClick="lbtnPrevious_Click" CssClass="prev">Trước</asp:LinkButton>
                        </li>
                        <li >
                            <asp:DataList ID="dlPaging" runat="server" OnItemCommand="dlPaging_ItemCommand" 
                                OnItemDataBound="dlPaging_ItemDataBound" RepeatDirection="Horizontal">
                                <ItemTemplate>                                
                                    <asp:LinkButton ID="lnkbtnPaging" runat="server" CssClass="num" 
                                        CommandArgument='<%# Eval("PageIndex") %>' CommandName="Paging" 
                                        Text='<%# Eval("PageText") %>'></asp:LinkButton>                                
                                </ItemTemplate>
                            </asp:DataList>
                        </li>                        
                        <li >
                            <asp:LinkButton ID="lbtnNext" runat="server" CausesValidation="false" 
                                        OnClick="lbtnNext_Click" CssClass="next">Tiếp</asp:LinkButton>
                        </li>
                        <li>
                            <asp:LinkButton ID="lbtnLast" runat="server" CssClass="next" CausesValidation="false" 
                                        OnClick="lbtnLast_Click">Cuối</asp:LinkButton>
                        </li>                        
                        <asp:Label ID="lblPageInfo" runat="server" Visible="false"></asp:Label>
                    </ul> 
                    </td>                                                   
           
    </tr>
</table>
